📦 Deploying The Discord Bot​
- Deploy your Discord Bot by running
cdk deploy
.
- If successful,
cdk deploy
should have this: DiscordBotLambdaTest.ApiGatewayUrl = <Your API Gateway URL>
in the output.
- Copy the API Gateway URL and go to your Discord Developer's Portal (discord.dev). Set this as Interactions Endpoint for your Bot.
- If this fails, try again after a few seconds. Your lambda function needs some time to boot up.
👑 Running the Streamlit Application​
- Run the Streamlit application by running
streamlit run src/streamlit.py
.
- The Streamlit application should be running on
localhost:8501
.